<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php
session_start();
require_once 'code/Util.php';
?>

<html>
    <head>
        <link rel="shortcut icon" href="images/iTrack.ico"> 
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE">
        <META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="en-US">
        <META NAME="DESCRIPTION" CONTENT="Tasks application home page">
        <META NAME="KEYWORDS" CONTENT="iTrack">
        <META NAME="COPYRIGHT" CONTENT="&copy; iTrack 2013">

        <title>iTrack</title>

        <link href="assets/css/bootstrap.css" rel="stylesheet">
        <style type="text/css">
            body {
                padding-top: 60px;
            }
        </style>
        <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">

        <script type="text/javascript">
            $(document).ready(function() {
		
		
            });	
        </script>
        <style type="text/css">
            .sidebar-nav {
                padding: 9px 0;
            }	  
        </style>    
    </head>
    <body>
        <?php        
        if (isset($_SESSION['userid'])) {
            ?>

            <?php
            Util::getNavBar();
            ?>

            <div class="container-fluid">
                <div class="row-fluid">
                    <div class="span2">
                        <div class="well sidebar-nav">
                            <?php
                            echo Util::getLeftNavList('Home');
                            ?>
                        </div><!--/.well -->
                    </div><!--/span-->
                    <div class="span10">
                        <div class="hero-unit visible-desktop">
                            <table width="100%" border="0">
                                <tr>
                                    <td>
                                        <h1>iTrack</h1>
                                        <p>Track, Manage and Report</p>
                                        <p><a class="btn btn-primary btn-large" href="about.php">Learn more &raquo;</a></p>
                                    </td>
                                    <td align="left">
                                        <img alt="iTrack" src="images/Todo.png" width="128" height="128" style="border-right-style: solid; border-right-width: 4px; border-right-color: #DED7DA;
                                             border-bottom-style: solid; border-bottom-width:4px; border-bottom-color:#DED7DA;">
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="row-fluid">
						
							<div class="span3">
								<a class="" href="projects.php?projectid=1">
									<div class="well" style="min-height:100px;">
	                                	<h4><span class="badge badge-success">2</span> Active Projects</h4>
	                            	</div>
								</a>
							</div>
							
							<div class="span3">
								<a class="" href="projects.php?projectid=1">
									<div class="well" style="min-height:100px;">
	                                	<h4><span class="badge badge-warning">4</span> Inactive Projects</h4>
	                            	</div>
								</a>
							</div>
													                            

                        </div><!--/row-->

                    </div><!--/span-->
                </div><!--/row-->

                <!-- Include footer -->
                <?php include_once 'footer.php'; ?>
            </div>


            <!-- Placed at the end of the document so the pages load faster -->
            <script src="assets/js/jquery.js"></script>
            <script src="assets/js/bootstrap-transition.js"></script>
            <script src="assets/js/bootstrap-alert.js"></script>
            <script src="assets/js/bootstrap-modal.js"></script>
            <script src="assets/js/bootstrap-dropdown.js"></script>
            <script src="assets/js/bootstrap-scrollspy.js"></script>
            <script src="assets/js/bootstrap-tab.js"></script>
            <script src="assets/js/bootstrap-tooltip.js"></script>
            <script src="assets/js/bootstrap-popover.js"></script>
            <script src="assets/js/bootstrap-button.js"></script>
            <script src="assets/js/bootstrap-collapse.js"></script>
            <script src="assets/js/bootstrap-carousel.js"></script>
            <script src="assets/js/bootstrap-typeahead.js"></script>

            <?php
        } else {
            header("location: login.php");
        }
        ?> 
    </body>
</html>